<template>
  <div>
    <el-button @click="handleClick">点我弹出弹框</el-button>
  </div>
</template>

<script>
import TestForm from "@/components/dialog5/TestForm";
import {useDialog} from "@/components/dialog5/MyDialog"
export default {
  name: "MyDialogTest5",
  data() {
    return {
      fdata: {}
    }
  },
  methods: {
    handleClick() {
      const close = useDialog(TestForm, {fdata: this.fdata}, () => {
        console.log({...this.fdata})
        close();
      }, () => {

      });
    }
  }
}

</script>

<style scoped>

</style>